<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

    protected function _initView()
    {
        // Initialize view
        $view = new Zend_View ( );
        $view->doctype ( 'XHTML1_STRICT' );
        $view->headTitle ( 'Tittle Site' );
        $view->headMeta ()->appendName ( 'author', 'NMCAN1306' );
        $view->headMeta ()->appendName ( 'keywords', 'soccer predictions, soccer tips, soccer picks, soccer betting' );
        $view->headMeta ()->appendName ( 'description', 'Betting Tips' );
        $view->headMeta ()->appendName ( 'Robots', 'index,all' );
        $view->skin = 'blues';
        
        // Add it to the ViewRenderer
        $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper ( 'ViewRenderer' );
        $viewRenderer->setView ( $view );
        
        // Return it, so that it can be stored by the bootstrap
        return $view;
    }

    protected function _initMenus()
    {
        $view = $this->getResource ( 'view' );
        $view->mainMenuId = 1;
        $view->adminMenuId = 2;
        
        $pages = array (array ('label' => 'Home', 'title' => 'Go Home', 'module' => 'default', 'controller' => 'index', 'action' => 'index', 'class' => 'index', 'order' => - 100 ) );// make sure home is the first page

        // Create container from array
        $container = new Zend_Navigation ( $pages );
        
        // Store the container in the proxy helper:
        $view->getHelper ( 'navigation' )->setContainer ( $container );
    }

    protected function _initAutoload()
    {
        // Add autoloader empty namespace
        $autoLoader = Zend_Loader_Autoloader::getInstance ();
        $autoLoader->registerNamespace ( 'CMS_' );
        $resourceLoader = new Zend_Loader_Autoloader_Resource ( array ('basePath' => APPLICATION_PATH, 'namespace' => '',
        		 'resourceTypes' => array ('form' => array ('path' => 'forms/', 'namespace' => 'Form_' ), 
        		 'model' => array ('path' => 'models/', 'namespace' => 'Model_' ) ) ) );
        
        // Return it so that it can be stored by the bootstrap
        return $autoLoader;
    }

    protected function _initVariable()
    {
      	
    }
}

